<template>
  <div>
    <a class="list-todo list activeListClass" v-for="item in items"> <!-- v-for 列表渲染-->
      <span class="icon-lock" v-if="item.locked"></span> <!-- v-if 条件渲染-->
      <span class="count-list" v-if="item.count >
      0">{{item.count}}</span>
      {{item.title}}   <!-- 数据绑定，看模板语法-->
    </a>

  </div>

</template>

<script>
  export default {
    name: 'ListPage',
    data () {
      return {
        items: [{ title: '星期一', count: 1, locked: true }, //菜单的模拟数据
          { title: '星期二', count: 2, locked: true }, {
            title: '星期三', count: 3, locked: false
          }]

      }
    }
  }
</script>

<style scoped>
  /*.el-row {*/
  /*!*margin-bottom: 20px;*!*/
  /*!*&:last-child {*!*/
  /*!*margin-bottom: 0;*!*/
  /*!*}*!*/
  /*}*/
  /*.el-col {*/
  /*border-radius: 4px;*/
  /*}*/
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  /*.row-bg {*/
  /*padding: 10px 0;*/
  /*background-color: #f9fafc;*/
  /*}*/
</style>
